Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -eu
# Runtime files used by the dnsmasq dhcp-script hook. Final hosts files live in
# HOSTS_DIR. Temporary files are kept out of HOSTS_DIR.
RUNTIME_DIR=${RUNTIME_DIR:-/run/dnsmasq}
HOSTS_DIR=${HOSTS_DIR:-${RUNTIME_DIR}/hosts.d}
TEMP_DIR=$RUNTIME_DIR
@fnky
fnky / ANSI.md
Last active November 8, 2026 04:56
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@danielrosehill
danielrosehill / amd-gpu-linux-troubleshooting-guide.md
Created November 23, 2025 16:08
A Dummy's Guide to AMD GPU Issues on Linux - Understanding RDNA3, TLB Fences, and Kernel Parameters
@rdnt
rdnt / README.md
Last active November 8, 2026 04:40
GPG master & subKeys generation and usage on Git & Github (for GnuPG v2.1 or later)

This guide covers creating a master keypair (private and public key, along with an automatically generated encryption subKey), creation of subKeys from that master key to use for signing, and using said keys on Git and Github.
Passphrases are optional but strongly encouraged.

1. Create a master keypair:

  • Type gpg --full-generate-key and enter following settings:
  • Algorithm: RSA and RSA
  • Key size: 4096 bits
  • Duration: 0 (infinite; does not expire)
  • Fill in your personal info (Comment is username)
  • Enter passphrase if applicable

Review

Review a PR or branch with a code review mindset. Prioritize bugs, behavior regressions, security risks, concurrency, and missing tests. Do not change code unless the user explicitly asks you to.

Parameters

  • $ARGUMENTS - Can be:
    • GitHub PR URL
    • PR number (e.g. 6193 or #6193)
  • branch name
@guss77
guss77 / read-plasma-wallpaper
Last active November 8, 2026 04:36
Bash script that reports the currently set KDE Plasma wallpaper, on the specified (or current) activity and screen. Supports the Image and Slideshow plugins and can complain correctly about the POTD plugin.
#!/bin/bash
##
# Helper to find the user configured name of an activity, by its ID
function getActivityName() {
qdbus org.kde.ActivityManager /ActivityManager/Activities \
org.kde.ActivityManager.Activities.ActivityName "$1"
}
##
@simonhaenisch
simonhaenisch / video-player.html
Last active November 8, 2026 04:36
Play local video files in the browser (HTML5 video player) with playlist, speed control and keyboard shortcuts for pause (spacebar) and 5 second jump (left/right arrow). Created to watch Wes Bos tutorials offline. Playback speed defaults to 2x.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Local HTML5 Video Player</title>
</head>
<body>
<style>
* { box-sizing: border-box; }
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}